@extends('_layouts.blank')

@section('page-level-styles')
{{ HTML::style('assets/admin/pages/css/profile.css') }}
{{ HTML::style('assets/global/plugins/bootstrap-modal/css/bootstrap-modal-bs3patch.css') }}
{{ HTML::style('assets/global/plugins/bootstrap-modal/css/bootstrap-modal.css') }}
@stop

@section('page-level-plugins')
@stop

@section('page-level-script')
{{ HTML::script('assets/admin/pages/scripts/profile.js') }}
{{ HTML::script('assets/global/plugins/bootstrap-modal/js/bootstrap-modalmanager.js') }}
{{ HTML::script('assets/global/plugins/bootstrap-modal/js/bootstrap-modal.js') }}
@stop

@section('jquery-document-ready')
Profile.init();
@stop

@section('breadcrumb-button')
<li class="btn-group">
    <button type="button" class="btn blue">
        {{{$Option['USERTYPE'][$User->usertype]->data}}} 
    </button>
</li>
@stop

@section('page-content')
<div id="ajax-modal" class="modal fade" tabindex="-1"></div>
<div class="row profile">
    <div class="col-md-12">
        <!--BEGIN TABS-->
        <div class="tabbable tabbable-custom tabbable-full-width">
            <ul class="nav nav-tabs">
                <li class="active">
                    <a href="#tab_1_1" data-toggle="tab">
                        {{{ trans('system.my-profile') }}}
                    </a>
                </li>
                <li>
                    <a href="#tab_1_2" data-toggle="tab">
                        {{{ trans('system.button.update') }}}
                    </a>
                </li>
                <li>
                    <a href="#tab_1_3" data-toggle="tab">
                        {{{ trans('user.password') }}}
                    </a>
                </li>
            </ul>
            <div class="tab-content">
                <div class="tab-pane active" id="tab_1_1">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="row">
                                <div class="col-md-4">
                                    <ul class="list-unstyled profile-nav">
                                        <li>
                                            <a>
                                                <i class="fa fa-user"></i> {{{$User->id}}}
                                            </a>
                                        </li>
                                        <li>
                                            <a>
                                                <i class="fa fa-heart"></i> {{{ trans('user.gender.' . $User->gender) }}}
                                            </a>
                                        </li>
                                        <li>
                                            <a>
                                                <i class="fa fa-calendar"></i> {{{CNamHoa::ConvertDate($User->birthday)}}}
                                            </a>
                                        </li>
                                        <li>
                                            <a>
                                                <i class="fa fa-phone"></i> {{{$User->phone}}}
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                                <!--end col-md-4-->
                                <div class="col-md-8 profile-info">
                                    <h1>{{{ $User->saint }}} {{{ $User->username }}}</h1>
                                    <ul class="list-inline">
                                        <li>
                                            <i class="fa fa-map-marker"></i> <strong>{{{ trans('user.address') }}}:</strong> {{{ $User->address }}}
                                        </li>
                                    </ul>
                                    <!-- BEGIN Portlet PORTLET-->
                                    <div class="portlet box green">
                                        <div class="portlet-title">
                                            <div class="caption">
                                                {{{ trans('dear.dear-title') }}}
                                            </div>
                                            <div class="tools">
                                                <a href="#" data-load="false" data-url="{{ route('profile-table-dear', ['id'=> $User->id ]) }}" class="reload page-reload"></a>
                                            </div>
                                            <div class="actions">
                                                <a href="#" data-url="{{ route('profile-create-dear', ['id'=> $User->id ]) }}" class="btn default btn-sm add-btn {{ CNamHoa::getHideClass('profile-create-dear') }}">
                                                    <i class="fa fa-plus"></i> {{ trans('system.button.new') }}
                                                </a>
                                            </div>
                                        </div>
                                        <div class="portlet-body"></div>
                                    </div>
                                    <!-- END Portlet PORTLET-->
                                    <!-- BEGIN Portlet PORTLET-->
                                    <div class="portlet box blue">
                                        <div class="portlet-title">
                                            <div class="caption">
                                                {{{ trans('dear.brother-title') }}}
                                            </div>
                                            <div class="tools">
                                                <a href="#" data-load="false" data-url="{{ route('profile-table-brother', ['id'=> $User->id ]) }}" class="reload page-reload"></a>
                                            </div>
                                            <div class="actions">
                                                <a href="#" data-url="{{ route('profile-create-brother', ['id'=> $User->id ]) }}" class="btn default btn-sm add-btn {{ CNamHoa::getHideClass('profile-create-brother') }}">
                                                    <i class="fa fa-plus"></i> {{ trans('system.button.update') }}
                                                </a>
                                            </div>
                                        </div>
                                        <div class="portlet-body"></div>
                                    </div>
                                    <!-- END Portlet PORTLET-->
                                </div>
                                <!--end col-md-8-->
                            </div>
                        </div>
                    </div>
                </div>
                <!--tab_1_2-->
                <div class="tab-pane" id="tab_1_2">
                    <!-- BEGIN Portlet PORTLET-->
                    <div class="portlet box blue">
                        <div class="portlet-title">
                            <div class="caption">
                                {{ trans('user-pages.create.person-info') }} - {{ trans('user.userid') }}: {{ $User->id }}
                            </div>
                            <div class="tools">
                                <a href="#" data-load="false" data-url="{{ route('profile-form', ['id' => $User->id]) }}" class="reload page-reload"></a>
                            </div>
                        </div>
                        <div class="portlet-body form"></div>
                    </div>
                    <!-- END Portlet PORTLET-->
                </div>
                <!--end tab-pane-->
                <!--tab_1_3-->
                <div class="tab-pane" id="tab_1_3">
                    <!-- BEGIN Portlet PORTLET-->
                    <div class="portlet box blue">
                        <div class="portlet-title">
                            <div class="caption">
                                {{ trans('system.button.update') }} {{ trans('user.password') }} - {{ trans('user.userid') }}: {{ $User->id }}
                            </div>
                            <div class="tools">
                                <a href="#" data-load="false" data-url="{{ route('profile-password', ['id' => $User->id]) }}" class="reload page-reload"></a>
                            </div>
                        </div>
                        <div class="portlet-body form"></div>
                    </div>
                    <!-- END Portlet PORTLET-->
                </div>
                <!--end tab-pane-->
            </div>
        </div>
        <!--END TABS-->
    </div>
</div>
@stop